<?php

require "./lib/recaptcha/recaptchalib.php";
require "./lib/src/recaptchakey.php";

$main_url = base_url('main');
$images_url = base_url('images');
$verify_url = base_url('verify');

$mapdir = "
	<a href='$main_url'>Home</a>
	&gt; 
	<b>Kontak Kami</b>
";

$other_head = "
	<script type='text/javascript'>
		
		function form_validate(form){
			if(form.nama.value==''){ alert('Nama Harus Diisi'); form.nama.focus(); return false; }
			if(form.email.value==''){ alert('Email harus disertakan'); form.email.focus(); return false; }
			if(form.masukan.value==''){ alert('Sertakan Pesan anda!'); form.masukan.focus(); return false; }
			
		}
	
	</script>
";


$isipage = "
	<div id='content2'>
			<h3>Kontak Kami</h3>
				<div class='isicontent2'>
				 <img class='pcc' alt='Kontak' src='$images_url/logoo.png' width='20%'>
				  
				  <br>
				  <p>
					Apabila anda ada pertanyaan, keluhan, saran, kritik  terhadap kami, anda dapat kontak kami dengan mengirim email ke ".safe_mailto('cs@dadannetwork.com')." atau dengan mengisi formulir dibawah ini.<br><br>
					Salam hangat Dadan Setia
				  </p>
				</div>
				<div class='isicontent2'>
				
				  <br>
				  <p>
					Silahkan isi formulir seputar keluhan, pernyataan, saran, kritik anda terhadap kami. 
				  </p>
				  <br />
				  <form id='FrmMasukan' 
				  action='$verify_url/kontak' method='post' onsubmit='return form_validate(this)'>
					
						<table>
							<tbody>
								<tr>
									<td class='left'>Nama</td>
									<td class='right'> <input name='nama' type='text' placeholder='Masukan Nama Anda'  /></td>
								</tr>
								<tr>
									<td class='left'>Email</td>
									<td class='right'> <input name='email' type='email' placeholder='Masukan Email Anda' /> </td>
								</tr>
								<tr>
									<td class='left'>Pesan</td>
									<td class='right'> <textarea name='masukan' cols='30' rows='5' placeholder='Pertanyaan, saran, kritik Anda'></textarea></td>
								</tr>
								<tr>
									<td class='left'>Captha</td>
									<td class='right'> 
										".recaptcha_get_html($publickey)." 
										<br /> 
									</td>
								</tr>
								<tr>
									<td class='left'> &nbsp; </td>
									<td class='right'>
										<input type='submit' value='Kirim'> 
										<input type='reset' value='Ulang'>
									</td>
								</tr>
							
							</tbody>
						</table>
						
				  </form>
				</div>
				
			</div>
";

$data['other_head'] = $other_head;
$data['map_dir'] = $mapdir;
$data['isi_page'] = $isipage;
$data['site_title'] = 'Kontak Kami - Dadan Network';
$data['site_description'] = 'Dadan Network adalah situs berbagi informasi tentang jaringan profesional antar enterpreneur indonesia';
$data['site_keywords'] = 'dadan, network, profesional, enterpreneur, produk, usaha';
$data['base_url'] = base_url();
$data['tahun_sekarang'] = date("Y");

$this->parser->parse('template/home', $data);

/* End of file kontak.php */
/* Location: ./application/views/main/kontak.php */
